package com.licode.codekit.buildprj;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.DialogWrapper;

import javax.annotation.Nullable;
import javax.swing.*;

/**
 * @author licode
 */
public class ProjectCodeUI extends DialogWrapper {
    private final Project project;
    private final ProjectUiBuilder projectUiBuilder = new ProjectUiBuilder();

    public ProjectCodeUI(@Nullable Project project) {
        super(project);
        this.setTitle("小码咨询编程助手-工程创建");
        this.project = project;
        this.init();
    }

    protected JComponent createNorthPanel() {
        return this.projectUiBuilder.initNorth();
    }

    protected JComponent createSouthPanel() {
        return null;
    }

    protected JComponent createCenterPanel() {
        return this.projectUiBuilder.initCenter(this.project, this);
    }
}
